package com.dt76.smallloanbackendservice.service.xm.impl;

import com.dt76.smallloanbackendservice.mapper.xm.DashboardMapper;
import com.dt76.smallloanbackendservice.pojo.afterloan.RepaymentInfo;
import com.dt76.smallloanbackendservice.pojo.xm.FcCheckState;
import com.dt76.smallloanbackendservice.service.xm.DashboardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DashboardServiceImpl implements DashboardService {

    @Autowired
    private DashboardMapper dashboardMapper;

    @Override
    public int qryBorrowCount() {
        return dashboardMapper.qryBorrowCount();
    }

    @Override
    public List<FcCheckState> qryBorrowMoney() {
        return dashboardMapper.qryBorrowMoney();
    }

    @Override
    public List<RepaymentInfo> qryLoanMoney() {
        return dashboardMapper.qryLoanMoney();
    }

    @Override
    public int qrySecondCount() {
        return dashboardMapper.qrySecondCount();
    }

    @Override
    public int qryLaterCount() {
        return dashboardMapper.qryLaterCount();
    }

    @Override
    public int qryLendCount() {
        return dashboardMapper.qryLendCount();
    }

    @Override
    public int qryOverCount() {
        return dashboardMapper.qryOverCount();
    }
}
